package com.seocoo.worker.user.account.model.req;

import com.seocoo.worker.base.Const;
import com.seocoo.worker.base.entity.ELogin;
import com.seocoo.worker.base.http.BaseRsp;
import com.seocoo.worker.base.http.DWBaseRequest;
import com.sfh.lib.AppCacheManager;

/***
 * 绑定银行卡
 */
public class ReqBundCard extends DWBaseRequest<BaseRsp> {

    //开户行
    public String bankName;
    //持卡人姓名
    public String cardName;
    //银行卡号
    public String cardNo;
    //手机号码
    public String phoneNumber;
    //验证码
    public String smsCode;

    public ReqBundCard() {
        super("/api/bankcard/bundCard");
    }

    @Override
    public Object buildParam() {
        ELogin login = AppCacheManager.getCacheListener().getObject(Const.LOGIN_KEY, ELogin.class);
        phoneNumber = login.getUserInfo().getPhoneNumber();
        return super.buildParam();
    }
}
